package com.cskaoyan.mapper;

import com.cskaoyan.module.pojo.MarketAftersale;
import com.cskaoyan.module.pojo.MarketAftersaleExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface MarketAftersaleMapper {
    long countByExample(MarketAftersaleExample example);

    int deleteByExample(MarketAftersaleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAftersale record);

    int insertSelective(MarketAftersale record);

    List<MarketAftersale> selectByExample(MarketAftersaleExample example);

    MarketAftersale selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAftersale record, @Param("example") MarketAftersaleExample example);

    int updateByExample(@Param("record") MarketAftersale record, @Param("example") MarketAftersaleExample example);

    int updateByPrimaryKeySelective(MarketAftersale record);

    int updateByPrimaryKey(MarketAftersale record);
    //批量通过
    void updateByidRecept(@Param("ids") Integer[] ids);
    //批量不通过
    void updateByidReject(@Param("ids") Integer[] ids);
    //用户退款
    void updateCustomerRefund(@Param("id") Integer id);
    //用户单一通过
    void updateSingById(@Param("id") Integer id);
    //用户单一不通过
    void updateRejectSingleById(@Param("id") Integer id);


    MarketAftersale selectByAfterSale(MarketAftersale marketAftersale);


    MarketAftersale selectByAfterSaleWithCondition(@Param("status") Short status);

    MarketAftersale selectByUserIdOrStatus(@Param("userId") Integer id, @Param("statuss") Integer status);
}